<template >
  <div class="mod-config">
    <table-view ref="view"
                :searchAttrs="searchAttrs"
                :primaryKey="primaryKey"
                :listApiName="listApiName"
                :deleteApiName="deleteApiName"
                :exportApiName="exportApiName"
                :saveAuthName="saveAuthName"
                :deleteAuthName="deleteAuthName"
                :showAttrs="showAttrs"
    >
    </table-view>
    <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
  </div>
</template>


<script>
  import tableView from '@/components/tableView'
  import basicMixins from '@/utils/commonViewMixins'
  import AddOrUpdate from './warehouseinfo-add-or-update'
  export default {
    mixins: [basicMixins],
    data () {
      return {
        primaryKey: 'id',
        listApiName: 'warehouseApi/listWarehouseInfoList',
        deleteApiName: 'warehouseApi/deleteWarehouseInfoAdd',
        exportApiName: 'warehouseApi/getWarehouseInfoExport',
        saveAuthName: 'warehouse:warehouseinfo:save',
        deleteAuthName: 'warehouse:warehouseinfo:delete',
        searchAttrs: {
        },
        showAttrs: {
          id:{
        label:"id"
      },
          warehouseName:{
        label:"仓库名字"
      },
          type:{
        label:"类型0为原料仓库"
      },
          status:{
        label:"状态"
      },
          createUser:{
        label:"创建者"
      },
          createTime:{
        label:"创建时间"
      },
          updateUser:{
        label:"更新者"
      },
          updateTime:{
        label:"更新时间"
      },
            }
      }
    },
    components: {
      tableView,
      AddOrUpdate
    }
  }
</script>
